function getServerInfoConfig() {
  var con = {
    sso_ip: "58.16.181.23",
    sso_port: "9120"
    // sso_ip: window.location.hostname,
    // sso_port: window.location.port,
  };
  return con;
}

const serverInfoConfig = getServerInfoConfig();
// let projectName = process.env.VUE_APP_NGINX_PRIFIX;
// let cityUploadUrl = process.env.VUE_APP_CITY_ADDRESS;
// let cityMessageUrl = process.env.VUE_APP_CITY_MESSAGE;
let projectName = "/hxmb";
let cityUploadUrl = "/uplod";
let cityMessageUrl = "/message";
if (projectName.includes("/")) {
  projectName = projectName.split("/")[1];
}
const loginConfig = {
  sso_login_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}-center/slogin`, //登录
  sso_validate_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}-center/svalidate`, //验证
  sso_logout_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}-center/prepare/logout`, //退出
  center_index_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}-center/admin/index`, //首页
  partybuild_local_service_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}/biz/partybuild.html`,
  oversee_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/hxdb/`,
  object_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/hxjx/`,
  user_url: `http://${serverInfoConfig.sso_ip}:${serverInfoConfig.sso_port}/${projectName.toLowerCase()}/authority/index.html`,
  cityUploadUrl: cityUploadUrl + "/gydbdc-upload-webapp-new/file/uploaderArea.do",
  cityMessageUrl: cityMessageUrl + "/gydbdc-goal-webapp-new/open/queryTimeSet.do",
  cityGoalUrl: cityMessageUrl + "/gydbdc-goal-webapp-new/open/queryGoalDict.do"
};
export default loginConfig;
